package com.yanjin.test;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.yanjin.test.presenter.LoaderMessagePresenterImp;
import com.yanjin.test.view.LoaderMessageView;

public class MainActivity extends BaseActivity<LoaderMessageView,LoaderMessagePresenterImp<LoaderMessageView>> implements LoaderMessageView{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public LoaderMessagePresenterImp<LoaderMessageView> createPrensenter() {
        return new LoaderMessagePresenterImp<LoaderMessageView>(this);
    }

    public void test(View view){
        Toast.makeText(this, "22", Toast.LENGTH_SHORT).show();

        mPresenter.getMessage();
    }

    @Override
    public void onStartGet() {
        System.out.println("yanjin------onStart-");
    }

    @Override
    public void onFinish(String values) {
        System.out.println("yanjin------onFinish-"+values);
    }
}
